<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="jquery-1.12.4.js"></script>
    <script type="text/javascript">
        $(function () {
        //前台页面使用解析json
        let jsonObject={"name":"牛马","age":"19"};//json对象
        $.each(jsonObject,function (i,n) {
            alert(i+"   "+n);
        })
        let jsonArray=["张三","李四","王五"];
        let jsonUser=[{"name":"陈庶","age":"17"},
            {"name":"虎牙","age":"17"}];
        })
    </script>

</head>
<body>
<form action="" id="form1">
    <table>
        <tr>
            <td>用 户 名：</td>
            <td><input type="text" name="name" id="name"/>&nbsp<font color="#c00fff">*</font></td>
            <td><div id="nameDiv" style="display: inline"></div></td>
        </tr>
    </table>
</form>
</body>
</html>